<template>
	<view class="Recharge_content">
		<view class="center_content">
			<image src="../../static/image/edition.png" class="edition"></image>
			<view class="back key_back ">
				<image src="../../static/image/key_back.png" class="backimg" @tap="back"></image>
				<text>{{i18n.bbgxtitle}}</text>
			</view>
			<view class="edition_detail">
				<text>{{version}}</text>
				<view>{{i18n.dqbbh}}</view>
			</view>		
			<image :src="i18n.bbgximg" class="export" @tap="updateApp"></image>
		</view>
		
	</view>
</template>

<script>
	import Version from '../../common/versionUpdate.js'
	export default {
		computed: {
			i18n() {
				return this.$t('user')
			}
		},
		data() {
			return {
				version:""
			}
		},
		onLoad() {
			const _this = this;
			//#ifdef APP-PLUS
			plus.runtime.getProperty(plus.runtime.appid, function(inf) {
				console.log(inf)
				_this.version = inf.version;
			})
			//#endif
		},
		methods: {
			updateApp(){
				console.log(1)
				Version.update(1);
				//this.$CommonJS.showToast('当前版本已是最新版本')
			},
			back(){
				this.$CommonJS.navigateBack()
			},
		}
	}
</script>

<style lang="stylus">
	@import "../../static/stylus/me/me.stylus"
</style>
